package com.jojo.jojomall.product.web;

import com.jojo.jojomall.product.service.SkuInfoService;
import com.jojo.jojomall.product.vo.SkuItemVo;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: 魔法少女小夫
 * @Data: 2022/5/20
 * @Version:
 * @Description:
 */
@Controller
public class ItemController {
    @Autowired
    SkuInfoService skuInfoService;
    @GetMapping("/{skuId}.html")
    public String skuItem(Long skuId){
        System.out.println("准备查询"+skuId+"详情");
       SkuItemVo vo = skuInfoService.item(skuId);
        return "item";
    }

}
